package com.cheyun.netsalev3.repository

import androidx.lifecycle.LiveData
import com.cheyun.netsalev3.bean.dm.DmSearch
import com.cheyun.netsalev3.dao.DmSearchDao
import com.cheyun.netsalev3.utils.runOnIoThread

class DmSearchRepository(var searchDao: DmSearchDao) {
    fun getlist(): LiveData<List<DmSearch>> {
        return searchDao.getSearchList()
    }

    fun deleteTabe() {
        runOnIoThread {
            searchDao.deleteTabe()
        }
    }
}